#ifndef HGT_FREE_MAIN_WINDOW_H
#define HGT_FREE_MAIN_WINDOW_H 1

#include <QMainWindow>

#include <FreeEarth/IRenderContext.h>

namespace Ui {
	class FreeMainWindow;
}
class C3DScenePanel;

class CFreeMainWindow : public QMainWindow
{
	Q_OBJECT
public:
	CFreeMainWindow(QWidget *parent = 0, Qt::WindowFlags flags = 0);

	~CFreeMainWindow();

public:
	bool Initialize(IRenderContext *pRenderContext);

	bool UnInitialize();

protected: // override QMainWindow
	bool eventFilter(QObject *obj, QEvent *event);

	virtual bool event(QEvent *e);

private:
	bool InitializeUI();

private:
	Ui::FreeMainWindow *ui;
	C3DScenePanel*							m_p3DScenePanel;
};

#endif  //HGT_FREE_MAIN_WINDOW_H 
